import request from '@/util/http.js'

const API = `/broad/news`;

export function deleteNewsById(id){
    return request({
        url: `${API}/${id}`,
        method: 'delete'
    })
}


export function saveNews(obj) {
    return request({
        url: `${API}/save`,
        method: 'post',
        data: obj
    })
}

export function getNewsAll(pageNum,pageSize,form){
    return request({
        url: `${API}/page/${pageNum}/${pageSize}`,
        method: 'get',
        params: {
            name: form.name
        }
    })
}
